﻿using System;
using ControlCenter.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
using ControlCenter.Model.WebApiDto;

namespace ControlCenter.ApplicationService
{
    /// <summary>
    /// 身份授权服务接口
    /// </summary>
    public interface IAuthService
    {
        /// <summary>
        /// 账号登录验证
        /// </summary>
        /// <param name="userName">账号</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        Task<Tuple<bool, string>> CheckLogin(string userName, string pwd);

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="paramDto">请求参数</param>
        /// <returns></returns>
        Task<Tuple<bool, string>> ModifyPwd(ModifyPwdDto paramDto);

    }
}
